import { defineConfig } from "vite";
import preact from "@preact/preset-vite";

// https://vite.dev/config/
export default defineConfig({
  build: {
    target: ["chrome135"],
    cssMinify: false,
    rollupOptions: {
      output: {
        format: "iife",
      },
    },
  },
  server: { watch: { usePolling: true } },
  plugins: [preact()],
  base: "./",
});
